"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const crypto_1 = __importDefault(require("crypto"));
const cryptoFun = (text, cryptoType = 'sha1', outputType = 'binary') => {
    const hash = crypto_1.default.createHash(cryptoType);
    return hash.update(text).digest(outputType);
};
exports.default = cryptoFun;
